package com.doit.zhaohang.handlerlunbotu;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    private YuKu mYuKu;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


        mYuKu = (YuKu) findViewById(R.id.youku);

        mYuKu.setOnMenuChengListener(new YuKu.OnMenuChengListener() {
            @Override
            public void onCheng(boolean isLeve3, boolean isLeve2) {

                //吐司可以换行
                Toast.makeText(MainActivity.this,"isLeve3==="+"\n"+isLeve3,Toast.LENGTH_SHORT).show();
            }
        });
    }
}
